﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;

public partial class CustomControls_RelatedArticles : System.Web.UI.UserControl
{
    Articles current;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(Request.QueryString["ID"]))
        {
            current = Entities.GetArticleDetails(Convert.ToInt32(Request.QueryString["ID"]));
            repTags.DataSource = Entities.GetRelatedArticles(current);
            repTags.DataBind();
        }
    }
}
